<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>收藏的食物</title>
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.4/lib/index.css">

  <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
  <link rel="stylesheet" href="/css/global.css">
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vant@2.4/lib/vant.min.js"></script>
  <!--    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>-->
  <script src="https://cdn.bootcss.com/qs/6.5.2/qs.min.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.19.2/axios.js"></script>
</head>
<body>
<div class="bg"></div>
<div id="app">
  <van-row>
    <van-col span="24">
      <van-nav-bar
        title=""
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
      />
    </van-col>
    <van-col span="24">
      <div class="d-flex align-items-center">
        <div class="w-100">
          <van-dropdown-menu>
            <van-dropdown-item v-model="value1" :options="option1"/>
          </van-dropdown-menu>
        </div>
        <span class="flex-grow-shrink border-left color-main pl-3 pr-3">编辑</span>
      </div>
    </van-col>
    <van-col span="24">
      <div class="box m-4 pl-3 pr-3 pb-3">
        <ul class="breakfast-list">
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="80px"
                height="80px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">桑葚</p>
              <p class="size1 color-ash mt-2">桑葚是绿色食品，推荐食</p>
            </div>
          </li>
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="80px"
                height="80px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">桑葚</p>
              <p class="size1 color-ash mt-2">桑葚是绿色食品，推荐食</p>
              <p class="size1 color-lesser mt-2">290 千卡/100</p>
            </div>
          </li>
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="80px"
                height="80px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">桑葚</p>
              <p class="size1 color-ash mt-2">桑葚是绿色食品，推荐食</p>
            </div>
          </li>
        </ul>
      </div>
    </van-col>
    <van-col span="24">
      <div class="box m-4 pl-3 pr-3 pb-3">
        <ul class="breakfast-list">
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="100px"
                height="100px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold d-flex justify-content-between align-items-center">
                <span>套餐一</span>
                <span><van-switch v-model="checked" size="24px"/></span>
              </p>
              <p class="size1 color-ash mt-2 text-ellipsis-2">Vivamus aliquet ligula non ante aliquet lacinia. Donec
                dignissim massa in ex</p>
            </div>
          </li>
        </ul>
      </div>
    </van-col>
  </van-row>
</div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        value1: 0,
        option1: [
          {text: '收藏的食物', value: 0},
          {text: '收藏的套餐', value: 1},
        ],
        checked: true,
      };

    },
    methods: {
      onClickLeft() {
        Toast('返回');
      },
    },
  });
</script>
</html>
